# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=libgrilio
pkgver=1.0.36
pkgrel=0
pkgdesc="RIL client library"
url="https://git.sailfishos.org/mer-core/libgrilio"
arch="all"
license="BSD-3-Clause"
makedepends="libglibutil-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://git.sailfishos.org/mer-core/libgrilio/-/archive/$pkgver/libgrilio-$pkgver.tar.gz"
case $CARCH in
	s390x) options="$options !check" # test_io fails
esac

build() {
	make KEEP_SYMBOLS=1 release pkgconfig
}

package() {
	make install-dev DESTDIR="$pkgdir"
}

sha512sums="a1f16107b0272e1fa471e30b90eb01aad8741e8bfb818e3d297d27d53551dd6927f75b6e5ec292b9e99852c9e6100a846092f4dea62267da0d67d6a6e856a865  libgrilio-1.0.36.tar.gz"
